home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-16 | 10.4 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Wed Nov 16 17:05:36 1994, modified Wed Nov 16 17:05:36 1994, creator Think C, type ASCII, 9899 bytes "Alphabet.h" , at 0x272b 444 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 41 6c 70 68 61 62 | 65 74 2e 68 00 00 00 00 |..Alphab|et.h....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 26 ab 00 | 00 01 bc aa f0 32 b0 aa |.....&..|.....2..|
|00000060| f0 32 b0 00 00 0e 00 00 | 00 00 00 00 00 00 00 00 |.2......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c 84 00 00 |........|....|...|
|00000080| 2f 2a 09 0d 0d 5f 2f 5f | 2f 5f 2f 5f 2f 5f 2f 5f |/*..._/_|/_/_/_/_|
|00000090| 2f 5f 2f 5f 2f 5f 2f 5f | 2f 5f 2f 5f 2f 5f 2f 5f |/_/_/_/_|/_/_/_/_|
|000000a0| 2f 5f 2f 5f 2f 5f 2f 5f | 2f 5f 2f 5f 2f 5f 2f 5f |/_/_/_/_|/_/_/_/_|
|000000b0| 2f 5f 2f 5f 2f 5f 2f 5f | 2f 5f 2f 5f 2f 5f 2f 5f |/_/_/_/_|/_/_/_/_|
|000000c0| 2f 0d 0d 09 09 41 4c 50 | 48 41 42 45 54 20 2d 20 |/....ALP|HABET - |
|000000d0| 53 69 6d 70 6c 69 73 74 | 69 63 20 72 65 70 72 65 |Simplist|ic repre|
|000000e0| 73 65 6e 74 61 74 69 6f | 6e 20 6f 66 20 61 20 73 |sentatio|n of a s|
|000000f0| 65 74 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 73 |et of ch|aracters|
|00000100| 2c 0d 09 09 09 66 6f 72 | 20 75 73 65 20 77 69 74 |,....for| use wit|
|00000110| 68 20 74 68 65 20 4e 53 | 74 72 69 6e 67 20 63 6c |h the NS|tring cl|
|00000120| 61 73 73 2e 20 43 6f 75 | 6c 64 20 62 65 20 72 65 |ass. Cou|ld be re|
|00000130| 70 6c 61 63 65 64 20 62 | 79 20 61 20 6d 6f 72 65 |placed b|y a more|
|00000140| 20 67 65 6e 65 72 61 6c | 0d 09 09 09 61 6c 70 68 | general|....alph|
|00000150| 61 62 65 74 20 72 65 70 | 72 65 73 65 6e 74 61 74 |abet rep|resentat|
|00000160| 69 6f 6e 2c 20 62 65 69 | 6e 67 20 61 20 73 75 62 |ion, bei|ng a sub|
|00000170| 63 6c 61 73 73 20 6f 66 | 20 61 20 67 65 6e 65 72 |class of| a gener|
|00000180| 61 6c 20 73 65 74 2d 63 | 6c 61 73 73 2e 0d 0d 09 |al set-c|lass....|
|00000190| 09 56 65 72 73 69 6f 6e | 20 31 2e 30 20 2d 20 62 |.Version| 1.0 - b|
|000001a0| 65 74 61 0d 09 09 0d 09 | 09 43 6f 70 79 72 69 67 |eta.....|.Copyrig|
|000001b0| 68 74 20 a9 20 31 32 74 | 68 20 4e 6f 76 65 6d 62 |ht . 12t|h Novemb|
|000001c0| 65 72 2c 20 31 39 39 34 | 20 62 79 20 4a 6f 91 6c |er, 1994| by Jo.l|
|000001d0| 20 22 4f 62 69 77 61 6e | 22 20 46 72 61 6e 8d 6f | "Obiwan|" Fran.o|
|000001e0| 69 73 0d 0d 5f 2f 5f 2f | 5f 2f 5f 2f 5f 2f 5f 2f |is.._/_/|_/_/_/_/|
|000001f0| 5f 2f 5f 2f 5f 2f 5f 2f | 5f 2f 5f 2f 5f 2f 5f 2f |_/_/_/_/|_/_/_/_/|
|00000200| 5f 2f 5f 2f 5f 2f 5f 2f | 5f 2f 5f 2f 5f 2f 5f 2f |_/_/_/_/|_/_/_/_/|
|00000210| 5f 2f 5f 2f 5f 2f 5f 2f | 5f 2f 5f 2f 5f 2f 5f 2f |_/_/_/_/|_/_/_/_/|
|00000220| 0d 0d 2a 2f 0d 0d 23 69 | 66 6e 64 65 66 20 5f 41 |..*/..#i|fndef _A|
|00000230| 4c 50 48 41 42 45 54 5f | 48 5f 0d 23 64 65 66 69 |LPHABET_|H_.#defi|
|00000240| 6e 65 20 5f 41 4c 50 48 | 41 42 45 54 5f 48 5f 0d |ne _ALPH|ABET_H_.|
|00000250| 0d 23 64 65 66 69 6e 65 | 20 42 55 46 53 49 5a 45 |.#define| BUFSIZE|
|00000260| 20 33 32 09 09 2f 2a 20 | 33 32 20 62 79 74 65 73 | 32../* |32 bytes|
|00000270| 20 3d 3d 20 32 35 36 20 | 63 68 61 72 61 63 74 65 | == 256 |characte|
|00000280| 72 73 20 2f 20 38 20 62 | 69 74 20 2a 2f 0d 23 64 |rs / 8 b|it */.#d|
|00000290| 65 66 69 6e 65 20 45 4c | 54 5f 48 49 47 48 20 32 |efine EL|T_HIGH 2|
|000002a0| 35 35 09 2f 2a 20 74 68 | 65 20 6e 75 6d 62 65 72 |55./* th|e number|
|000002b0| 20 6f 66 20 74 68 65 20 | 68 69 67 68 65 73 74 20 | of the |highest |
|000002c0| 70 6f 73 73 69 62 6c 65 | 20 65 6c 65 6d 65 6e 74 |possible| element|
|000002d0| 20 2a 2f 0d 23 64 65 66 | 69 6e 65 20 45 4c 54 5f | */.#def|ine ELT_|
|000002e0| 4c 4f 57 20 30 09 09 2f | 2a 20 74 68 65 20 6e 75 |LOW 0../|* the nu|
|000002f0| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 6c 6f 77 65 |mber of |the lowe|
|00000300| 73 74 20 70 6f 73 73 69 | 62 6c 65 20 65 6c 65 6d |st possi|ble elem|
|00000310| 65 6e 74 20 2a 2f 0d 0d | 63 6c 61 73 73 20 4e 53 |ent */..|class NS|
|00000320| 74 72 69 6e 67 3b 0d 0d | 63 6c 61 73 73 20 41 6c |tring;..|class Al|
|00000330| 70 68 61 62 65 74 0d 7b | 0d 09 70 72 69 76 61 74 |phabet.{|..privat|
|00000340| 65 3a 0d 09 0d 09 09 75 | 6e 73 69 67 6e 65 64 20 |e:.....u|nsigned |
|00000350| 63 68 61 72 20 62 75 66 | 66 65 72 5b 42 55 46 53 |char buf|fer[BUFS|
|00000360| 49 5a 45 5d 3b 09 09 09 | 09 09 09 09 09 2f 2f 20 |IZE];...|.....// |
|00000370| 32 35 36 20 62 69 74 73 | 20 74 6f 20 68 6f 6c 64 |256 bits| to hold|
|00000380| 20 74 68 65 20 70 72 65 | 73 65 6e 63 65 20 73 74 | the pre|sence st|
|00000390| 61 74 65 20 6f 66 20 65 | 61 63 68 20 6c 65 74 74 |ate of e|ach lett|
|000003a0| 65 72 0d 0d 09 70 75 62 | 6c 69 63 3a 0d 09 09 0d |er...pub|lic:....|
|000003b0| 09 09 2f 2f 09 4e 6f 74 | 65 3a 20 41 6c 6c 20 66 |..//.Not|e: All f|
|000003c0| 75 6e 63 74 69 6f 6e 73 | 20 72 65 74 75 72 6e 69 |unctions| returni|
|000003d0| 6e 67 20 61 6e 20 41 6c | 70 68 61 62 65 74 26 2c |ng an Al|phabet&,|
|000003e0| 20 6c 69 6b 65 20 22 2b | 3d 22 20 65 74 63 2e 2c | like "+|=" etc.,|
|000003f0| 20 72 65 74 75 72 6e 20 | 61 20 72 65 66 65 72 65 | return |a refere|
|00000400| 6e 63 65 20 74 6f 20 2a | 74 68 69 73 0d 09 09 2f |nce to *|this.../|
|00000410| 2f 09 09 09 74 6f 20 61 | 6c 6c 6f 77 20 66 75 6e |/...to a|llow fun|
|00000420| 63 74 69 6f 6e 20 63 61 | 6c 6c 20 63 68 61 69 6e |ction ca|ll chain|
|00000430| 69 6e 67 2c 20 65 2e 67 | 2e 3a 09 62 20 3d 20 28 |ing, e.g|.:.b = (|
|00000440| 61 20 2b 3d 20 27 4a 27 | 29 20 2d 20 63 3b 0d 09 |a += 'J'|) - c;..|
|00000450| 09 2f 2f 09 09 09 54 68 | 65 20 65 78 61 6d 70 6c |.//...Th|e exampl|
|00000460| 65 20 6c 69 6e 65 20 66 | 69 72 73 74 20 61 64 64 |e line f|irst add|
|00000470| 73 20 74 68 65 20 6c 65 | 74 74 65 72 20 27 4a 27 |s the le|tter 'J'|
|00000480| 20 74 6f 20 74 68 65 20 | 61 6c 70 68 61 62 65 74 | to the |alphabet|
|00000490| 20 61 2c 20 74 68 65 6e | 20 73 74 6f 72 65 73 20 | a, then| stores |
|000004a0| 74 68 65 20 64 69 66 66 | 65 72 65 6e 63 65 0d 09 |the diff|erence..|
|000004b0| 09 2f 2f 09 09 09 62 65 | 74 77 65 65 6e 20 74 68 |.//...be|tween th|
|000004c0| 65 20 6d 6f 64 69 66 69 | 65 64 20 61 6c 70 68 61 |e modifi|ed alpha|
|000004d0| 62 65 74 20 61 20 61 6e | 64 20 74 68 65 20 61 6c |bet a an|d the al|
|000004e0| 70 68 61 62 65 74 20 63 | 20 69 6e 20 74 68 65 20 |phabet c| in the |
|000004f0| 76 61 72 69 61 62 6c 65 | 20 62 2e 0d 09 09 0d 09 |variable| b......|
|00000500| 09 2f 2a 2d 2d 2d 2d 2d | 2d 2d 2d 20 43 6f 6e 73 |./*-----|--- Cons|
|00000510| 74 72 75 63 74 6f 72 73 | 20 26 20 44 65 73 74 72 |tructors| & Destr|
|00000520| 75 63 74 6f 72 20 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |uctor --|------*/|
|00000530| 0d 09 09 0d 09 09 69 6e | 6c 69 6e 65 20 41 6c 70 |......in|line Alp|
|00000540| 68 61 62 65 74 20 28 76 | 6f 69 64 29 3b 09 09 09 |habet (v|oid);...|
|00000550| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |........|.....// |
|00000560| 41 6c 70 68 61 62 65 74 | 20 61 3b 0d 09 09 09 2f |Alphabet| a;..../|
|00000570| 2f 09 43 72 65 61 74 65 | 20 61 6e 20 65 6d 70 74 |/.Create| an empt|
|00000580| 79 20 61 6c 70 68 61 62 | 65 74 2e 0d 09 09 09 0d |y alphab|et......|
|00000590| 09 09 41 6c 70 68 61 62 | 65 74 20 28 63 6f 6e 73 |..Alphab|et (cons|
|000005a0| 74 20 63 68 61 72 20 2a | 73 6f 75 72 63 65 29 3b |t char *|source);|
|000005b0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 2f 2f |........|......//|
|000005c0| 20 41 6c 70 68 61 62 65 | 74 20 61 28 22 59 4e 51 | Alphabe|t a("YNQ|
|000005d0| 22 29 3b 0d 09 09 09 2f | 2f 20 43 72 65 61 74 65 |");..../|/ Create|
|000005e0| 20 61 6e 20 61 6c 70 68 | 61 62 65 74 20 66 72 6f | an alph|abet fro|
|000005f0| 6d 20 61 20 73 74 72 69 | 6e 67 3a 20 6f 6e 6c 79 |m a stri|ng: only|
|00000600| 20 74 68 65 20 73 74 72 | 69 6e 67 27 73 20 6c 65 | the str|ing's le|
|00000610| 74 74 65 72 73 0d 09 09 | 09 2f 2f 09 09 77 69 6c |tters...|.//..wil|
|00000620| 6c 20 62 65 20 6d 65 6d | 62 65 72 73 20 6f 66 20 |l be mem|bers of |
|00000630| 74 68 65 20 61 6c 70 68 | 61 62 65 74 2e 0d 0d 09 |the alph|abet....|
|00000640| 09 41 6c 70 68 61 62 65 | 74 20 28 63 6f 6e 73 74 |.Alphabe|t (const|
|00000650| 20 63 68 61 72 20 73 6f | 75 72 63 65 29 3b 09 09 | char so|urce);..|
|00000660| 09 09 09 09 09 09 09 09 | 09 09 09 09 2f 2f 20 41 |........|....// A|
|00000670| 6c 70 68 61 62 65 74 20 | 61 28 27 44 27 29 3b 0d |lphabet |a('D');.|
|00000680| 09 09 09 2f 2f 20 43 72 | 65 61 74 65 20 61 6e 20 |...// Cr|eate an |
|00000690| 61 6c 70 68 61 62 65 74 | 20 66 72 6f 6d 20 61 20 |alphabet| from a |
|000006a0| 6c 65 74 74 65 72 0d 09 | 09 09 0d 09 09 41 6c 70 |letter..|.....Alp|
|000006b0| 68 61 62 65 74 20 28 63 | 6f 6e 73 74 20 41 6c 70 |habet (c|onst Alp|
|000006c0| 68 61 62 65 74 26 20 73 | 6f 75 72 63 65 29 3b 09 |habet& s|ource);.|
|000006d0| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 41 6c |........|...// Al|
|000006e0| 70 68 61 62 65 74 20 61 | 28 62 29 3b 0d 09 09 09 |phabet a|(b);....|
|000006f0| 2f 2f 20 43 72 65 61 74 | 65 20 61 6e 20 61 6c 70 |// Creat|e an alp|
|00000700| 68 61 62 65 74 20 66 72 | 6f 6d 20 61 6e 6f 74 68 |habet fr|om anoth|
|00000710| 65 72 20 61 6c 70 68 61 | 62 65 74 2e 0d 0d 09 09 |er alpha|bet.....|
|00000720| 41 6c 70 68 61 62 65 74 | 20 28 63 6f 6e 73 74 20 |Alphabet| (const |
|00000730| 4e 53 74 72 69 6e 67 26 | 20 73 6f 75 72 63 65 29 |NString&| source)|
|00000740| 3b 09 09 09 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |;.......|.....// |
|00000750| 41 6c 70 68 61 62 65 74 | 20 61 28 73 29 3b 0d 09 |Alphabet| a(s);..|
|00000760| 09 09 2f 2f 20 43 72 65 | 61 74 65 20 61 6e 20 61 |..// Cre|ate an a|
|00000770| 6c 70 68 61 62 65 74 20 | 66 72 6f 6d 20 61 6e 20 |lphabet |from an |
|00000780| 4e 53 74 72 69 6e 67 2e | 0d 0d 09 09 41 6c 70 68 |NString.|....Alph|
|00000790| 61 62 65 74 20 28 63 6f | 6e 73 74 20 63 68 61 72 |abet (co|nst char|
|000007a0| 20 73 74 61 72 74 2c 20 | 63 6f 6e 73 74 20 63 68 | start, |const ch|
|000007b0| 61 72 20 65 6e 64 29 3b | 09 09 09 09 09 09 09 09 |ar end);|........|
|000007c0| 09 2f 2f 20 41 6c 70 68 | 61 62 65 74 20 61 28 27 |.// Alph|abet a('|
|000007d0| 41 27 2c 20 27 5a 27 29 | 3b 0d 09 09 09 2f 2f 20 |A', 'Z')|;....// |
|000007e0| 43 72 65 61 74 65 20 61 | 6e 20 61 6c 70 68 61 62 |Create a|n alphab|
|000007f0| 65 74 20 74 68 61 74 20 | 63 6f 6e 74 61 69 6e 73 |et that |contains|
|00000800| 20 61 6c 6c 20 74 68 65 | 20 6c 65 74 74 65 72 73 | all the| letters|
|00000810| 0d 09 09 09 2f 2f 09 09 | 69 6e 20 74 68 65 20 72 |....//..|in the r|
|00000820| 61 6e 67 65 20 66 72 6f | 6d 20 22 73 74 61 72 74 |ange fro|m "start|
|00000830| 22 20 74 6f 20 22 65 6e | 64 22 2e 20 49 66 20 74 |" to "en|d". If t|
|00000840| 68 65 20 67 69 76 65 6e | 0d 09 09 09 2f 2f 09 09 |he given|....//..|
|00000850| 72 61 6e 67 65 20 69 73 | 20 65 6d 70 74 79 20 28 |range is| empty (|
|00000860| 69 2e 65 2e 20 74 68 65 | 20 73 74 61 72 74 69 6e |i.e. the| startin|
|00000870| 67 20 6c 65 74 74 65 72 | 27 73 20 41 53 43 49 49 |g letter|'s ASCII|
|00000880| 20 76 61 6c 75 65 0d 09 | 09 09 2f 2f 09 09 69 73 | value..|..//..is|
|00000890| 20 67 72 65 61 74 65 72 | 20 74 68 61 6e 20 74 68 | greater| than th|
|000008a0| 65 20 65 6e 64 69 6e 67 | 20 6c 65 74 74 65 72 27 |e ending| letter'|
|000008b0| 73 20 76 61 6c 75 65 29 | 2c 20 74 68 65 20 63 6f |s value)|, the co|
|000008c0| 6e 73 74 72 75 63 74 65 | 64 0d 09 09 09 2f 2f 09 |nstructe|d....//.|
|000008d0| 09 61 6c 70 68 61 62 65 | 74 20 77 69 6c 6c 20 62 |.alphabe|t will b|
|000008e0| 65 20 65 6d 70 74 79 2e | 20 49 66 20 73 74 61 72 |e empty.| If star|
|000008f0| 74 3d 3d 65 6e 64 2c 20 | 74 68 65 20 61 6c 70 68 |t==end, |the alph|
|00000900| 61 62 65 74 20 77 69 6c | 6c 0d 09 09 09 2f 2f 09 |abet wil|l....//.|
|00000910| 09 63 6f 6e 74 61 69 6e | 20 6e 6f 74 68 69 6e 67 |.contain| nothing|
|00000920| 20 62 75 74 20 74 68 65 | 20 73 70 65 63 69 66 69 | but the| specifi|
|00000930| 65 64 20 6c 65 74 74 65 | 72 2e 0d 09 09 0d 09 09 |ed lette|r.......|
|00000940| 7e 41 6c 70 68 61 62 65 | 74 20 28 76 6f 69 64 29 |~Alphabe|t (void)|
|00000950| 20 7b 7d 09 0d 0d 0d 09 | 09 2f 2a 2d 2d 2d 2d 2d | {}.....|./*-----|
|00000960| 2d 2d 2d 20 47 65 6e 65 | 72 61 6c 20 6f 70 65 72 |--- Gene|ral oper|
|00000970| 61 74 69 6f 6e 73 20 74 | 68 61 74 20 61 66 66 65 |ations t|hat affe|
|00000980| 63 74 20 74 68 65 20 77 | 68 6f 6c 65 20 61 6c 70 |ct the w|hole alp|
|00000990| 68 61 62 65 74 20 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |habet --|------*/|
|000009a0| 0d 0d 09 09 41 6c 70 68 | 61 62 65 74 26 20 63 6c |....Alph|abet& cl|
|000009b0| 65 61 72 20 28 76 6f 69 | 64 29 3b 09 09 09 09 09 |ear (voi|d);.....|
|000009c0| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 61 2e |........|...// a.|
|000009d0| 63 6c 65 61 72 28 29 3b | 0d 09 09 09 2f 2f 20 43 |clear();|....// C|
|000009e0| 6c 65 61 72 20 74 68 65 | 20 61 6c 70 68 61 62 65 |lear the| alphabe|
|000009f0| 74 2e 0d 0d 0d 09 09 2f | 2a 2d 2d 2d 2d 2d 2d 2d |t....../|*-------|
|00000a00| 2d 20 41 73 73 69 67 6e | 6d 65 6e 74 20 2d 2d 2d |- Assign|ment ---|
|00000a10| 2d 2d 2d 2d 2d 2a 2f 0d | 0d 09 09 41 6c 70 68 61 |-----*/.|...Alpha|
|00000a20| 62 65 74 26 20 6f 70 65 | 72 61 74 6f 72 3d 20 28 |bet& ope|rator= (|
|00000a30| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 73 6f 75 72 |const ch|ar *sour|
|00000a40| 63 65 29 3b 09 09 09 09 | 09 09 09 09 09 2f 2f 20 |ce);....|.....// |
|00000a50| 61 20 3d 20 22 4f 62 69 | 77 61 6e 22 3b 0d 09 09 |a = "Obi|wan";...|
|00000a60| 41 6c 70 68 61 62 65 74 | 26 20 6f 70 65 72 61 74 |Alphabet|& operat|
|00000a70| 6f 72 3d 20 28 63 6f 6e | 73 74 20 4e 53 74 72 69 |or= (con|st NStri|
|00000a80| 6e 67 26 20 73 6f 75 72 | 63 65 29 3b 09 09 09 09 |ng& sour|ce);....|
|00000a90| 09 09 09 09 2f 2f 20 61 | 20 3d 20 73 3b 0d 09 09 |....// a| = s;...|
|00000aa0| 09 2f 2f 20 52 65 69 6e | 69 74 69 61 6c 69 7a 65 |.// Rein|itialize|
|00000ab0| 20 74 68 65 20 61 6c 70 | 68 61 62 65 74 20 77 69 | the alp|habet wi|
|00000ac0| 74 68 20 74 68 65 20 6c | 65 74 74 65 72 73 20 6f |th the l|etters o|
|00000ad0| 66 20 74 68 65 20 67 69 | 76 65 6e 20 73 74 72 69 |f the gi|ven stri|
|00000ae0| 6e 67 2e 0d 0d 09 09 41 | 6c 70 68 61 62 65 74 26 |ng.....A|lphabet&|
|00000af0| 20 6f 70 65 72 61 74 6f | 72 3d 20 28 63 6f 6e 73 | operato|r= (cons|
|00000b00| 74 20 63 68 61 72 20 73 | 6f 75 72 63 65 29 3b 09 |t char s|ource);.|
|00000b10| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 61 20 3d 20 |........|.// a = |
|00000b20| 27 43 27 3b 0d 09 09 09 | 2f 2f 20 52 65 69 6e 69 |'C';....|// Reini|
|00000b30| 74 69 61 6c 69 7a 65 20 | 74 68 65 20 61 6c 70 68 |tialize |the alph|
|00000b40| 61 62 65 74 20 77 69 74 | 68 20 61 20 73 69 6e 67 |abet wit|h a sing|
|00000b50| 6c 65 20 6c 65 74 74 65 | 72 2e 0d 0d 09 09 41 6c |le lette|r.....Al|
|00000b60| 70 68 61 62 65 74 26 20 | 6f 70 65 72 61 74 6f 72 |phabet& |operator|
|00000b70| 3d 20 28 63 6f 6e 73 74 | 20 41 6c 70 68 61 62 65 |= (const| Alphabe|
|00000b80| 74 26 20 73 6f 75 72 63 | 65 29 3b 09 09 09 09 09 |t& sourc|e);.....|
|00000b90| 09 09 09 2f 2f 20 61 20 | 3d 20 62 3b 0d 09 09 09 |...// a |= b;....|
|00000ba0| 2f 2f 20 43 6f 70 79 20 | 74 68 65 20 73 6f 75 72 |// Copy |the sour|
|00000bb0| 63 65 20 61 6c 70 68 61 | 62 65 74 20 69 6e 74 6f |ce alpha|bet into|
|00000bc0| 20 74 68 69 73 20 61 6c | 70 68 61 62 65 74 2e 0d | this al|phabet..|
|00000bd0| 0d 0d 09 09 2f 2a 2d 2d | 2d 2d 2d 2d 2d 2d 20 41 |..../*--|------ A|
|00000be0| 64 64 69 6e 67 2f 52 65 | 6d 6f 76 69 6e 67 20 6c |dding/Re|moving l|
|00000bf0| 65 74 74 65 72 73 20 74 | 6f 2f 66 72 6f 6d 20 74 |etters t|o/from t|
|00000c00| 68 65 20 61 6c 70 68 61 | 62 65 74 20 2d 2d 2d 2d |he alpha|bet ----|
|00000c10| 2d 2d 2d 2d 2a 2f 0d 09 | 09 0d 09 09 41 6c 70 68 |----*/..|....Alph|
|00000c20| 61 62 65 74 26 20 6f 70 | 65 72 61 74 6f 72 2b 3d |abet& op|erator+=|
|00000c30| 20 28 63 6f 6e 73 74 20 | 63 68 61 72 20 65 6c 65 | (const |char ele|
|00000c40| 6d 65 6e 74 29 3b 09 09 | 09 09 09 09 09 09 09 2f |ment);..|......./|
|00000c50| 2f 20 61 20 2b 3d 20 27 | 71 27 3b 0d 09 09 09 2f |/ a += '|q';..../|
|00000c60| 2f 20 41 64 64 20 74 68 | 65 20 67 69 76 65 6e 20 |/ Add th|e given |
|00000c70| 65 6c 65 6d 65 6e 74 20 | 74 6f 20 74 68 65 20 61 |element |to the a|
|00000c80| 6c 70 68 61 62 65 74 0d | 09 09 0d 09 09 69 6e 6c |lphabet.|.....inl|
|00000c90| 69 6e 65 20 41 6c 70 68 | 61 62 65 74 20 6f 70 65 |ine Alph|abet ope|
|00000ca0| 72 61 74 6f 72 2b 20 28 | 63 6f 6e 73 74 20 63 68 |rator+ (|const ch|
|00000cb0| 61 72 20 65 6c 65 6d 65 | 6e 74 29 20 63 6f 6e 73 |ar eleme|nt) cons|
|00000cc0| 74 3b 09 09 09 09 09 09 | 2f 2f 20 61 20 3d 20 62 |t;......|// a = b|
|00000cd0| 20 2b 20 27 71 27 3b 0d | 09 09 09 2f 2f 20 52 65 | + 'q';.|...// Re|
|00000ce0| 74 75 72 6e 20 61 20 6e | 65 77 20 61 6c 70 68 61 |turn a n|ew alpha|
|00000cf0| 62 65 74 20 77 68 69 63 | 68 20 69 73 20 63 6f 6e |bet whic|h is con|
|00000d00| 73 74 72 75 63 74 65 64 | 20 62 79 0d 09 09 09 2f |structed| by..../|
|00000d10| 2f 09 09 61 64 64 69 6e | 67 20 74 68 65 20 67 69 |/..addin|g the gi|
|00000d20| 76 65 6e 20 65 6c 65 6d | 65 6e 74 20 74 6f 20 74 |ven elem|ent to t|
|00000d30| 68 69 73 20 61 6c 70 68 | 61 62 65 74 0d 0d 09 09 |his alph|abet....|
|00000d40| 41 6c 70 68 61 62 65 74 | 26 20 6f 70 65 72 61 74 |Alphabet|& operat|
|00000d50| 6f 72 2d 3d 20 28 63 6f | 6e 73 74 20 63 68 61 72 |or-= (co|nst char|
|00000d60| 20 65 6c 65 6d 65 6e 74 | 29 3b 09 09 09 09 09 09 | element|);......|
|00000d70| 09 09 09 2f 2f 20 61 20 | 2d 3d 20 27 71 27 3b 0d |...// a |-= 'q';.|
|00000d80| 09 09 09 2f 2f 20 52 65 | 6d 6f 76 65 20 74 68 65 |...// Re|move the|
|00000d90| 20 67 69 76 65 6e 20 65 | 6c 65 6d 65 6e 74 20 66 | given e|lement f|
|00000da0| 72 6f 6d 20 74 68 65 20 | 61 6c 70 68 61 62 65 74 |rom the |alphabet|
|00000db0| 0d 09 09 0d 09 09 69 6e | 6c 69 6e 65 20 41 6c 70 |......in|line Alp|
|00000dc0| 68 61 62 65 74 20 6f 70 | 65 72 61 74 6f 72 2d 20 |habet op|erator- |
|00000dd0| 28 63 6f 6e 73 74 20 63 | 68 61 72 20 65 6c 65 6d |(const c|har elem|
|00000de0| 65 6e 74 29 20 63 6f 6e | 73 74 3b 09 09 09 09 09 |ent) con|st;.....|
|00000df0| 09 2f 2f 20 61 20 3d 20 | 62 20 2d 20 27 71 27 3b |.// a = |b - 'q';|
|00000e00| 0d 09 09 09 2f 2f 20 52 | 65 74 75 72 6e 20 61 20 |....// R|eturn a |
|00000e10| 6e 65 77 20 61 6c 70 68 | 61 62 65 74 20 77 68 69 |new alph|abet whi|
|00000e20| 63 68 20 69 73 20 63 6f | 6e 73 74 72 75 63 74 65 |ch is co|nstructe|
|00000e30| 64 20 62 79 0d 09 09 09 | 2f 2f 09 09 72 65 6d 6f |d by....|//..remo|
|00000e40| 76 69 6e 67 20 74 68 65 | 20 67 69 76 65 6e 20 65 |ving the| given e|
|00000e50| 6c 65 6d 65 6e 74 20 66 | 72 6f 6d 20 74 68 69 73 |lement f|rom this|
|00000e60| 20 61 6c 70 68 61 62 65 | 74 0d 0d 0d 09 09 41 6c | alphabe|t.....Al|
|00000e70| 70 68 61 62 65 74 26 20 | 6f 70 65 72 61 74 6f 72 |phabet& |operator|
|00000e80| 2b 3d 20 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |+= (cons|t char *|
|00000e90| 73 6f 75 72 63 65 29 3b | 09 09 09 09 09 09 09 09 |source);|........|
|00000ea0| 09 2f 2f 20 61 20 2b 3d | 20 22 41 64 64 65 6e 64 |.// a +=| "Addend|
|00000eb0| 75 6d 22 3b 0d 09 09 41 | 6c 70 68 61 62 65 74 26 |um";...A|lphabet&|
|00000ec0| 20 6f 70 65 72 61 74 6f | 72 2b 3d 20 28 63 6f 6e | operato|r+= (con|
|00000ed0| 73 74 20 4e 53 74 72 69 | 6e 67 26 20 73 6f 75 72 |st NStri|ng& sour|
|00000ee0| 63 65 29 3b 09 09 09 09 | 09 09 09 2f 2f 20 61 20 |ce);....|...// a |
|00000ef0| 2b 3d 20 73 3b 0d 09 09 | 09 2f 2f 20 41 64 64 20 |+= s;...|.// Add |
|00000f00| 74 68 65 20 67 69 76 65 | 6e 20 73 74 72 69 6e 67 |the give|n string|
|00000f10| 27 73 20 6c 65 74 74 65 | 72 73 20 74 6f 20 74 68 |'s lette|rs to th|
|00000f20| 65 20 61 6c 70 68 61 62 | 65 74 0d 09 09 0d 09 09 |e alphab|et......|
|00000f30| 69 6e 6c 69 6e 65 20 41 | 6c 70 68 61 62 65 74 20 |inline A|lphabet |
|00000f40| 6f 70 65 72 61 74 6f 72 | 2b 20 28 63 6f 6e 73 74 |operator|+ (const|
|00000f50| 20 63 68 61 72 20 2a 73 | 6f 75 72 63 65 29 20 63 | char *s|ource) c|
|00000f60| 6f 6e 73 74 3b 09 09 09 | 09 09 2f 2f 20 61 20 3d |onst;...|..// a =|
|00000f70| 20 62 20 2b 20 22 41 64 | 64 65 6e 64 75 6d 22 3b | b + "Ad|dendum";|
|00000f80| 0d 09 09 69 6e 6c 69 6e | 65 20 41 6c 70 68 61 62 |...inlin|e Alphab|
|00000f90| 65 74 20 6f 70 65 72 61 | 74 6f 72 2b 20 28 63 6f |et opera|tor+ (co|
|00000fa0| 6e 73 74 20 4e 53 74 72 | 69 6e 67 26 20 73 6f 75 |nst NStr|ing& sou|
|00000fb0| 72 63 65 29 20 63 6f 6e | 73 74 3b 09 09 09 09 2f |rce) con|st;..../|
|00000fc0| 2f 20 61 20 3d 20 62 20 | 2b 20 73 3b 0d 09 09 09 |/ a = b |+ s;....|
|00000fd0| 2f 2f 20 52 65 74 75 72 | 6e 20 61 20 6e 65 77 20 |// Retur|n a new |
|00000fe0| 61 6c 70 68 61 62 65 74 | 20 77 68 69 63 68 20 69 |alphabet| which i|
|00000ff0| 73 20 63 6f 6e 73 74 72 | 75 63 74 65 64 20 62 79 |s constr|ucted by|
|00001000| 0d 09 09 09 2f 2f 09 09 | 61 64 64 69 6e 67 20 74 |....//..|adding t|
|00001010| 68 65 20 67 69 76 65 6e | 20 73 74 72 69 6e 67 27 |he given| string'|
|00001020| 73 20 6c 65 74 74 65 72 | 73 20 74 6f 20 74 68 69 |s letter|s to thi|
|00001030| 73 20 61 6c 70 68 61 62 | 65 74 0d 0d 09 09 41 6c |s alphab|et....Al|
|00001040| 70 68 61 62 65 74 26 20 | 6f 70 65 72 61 74 6f 72 |phabet& |operator|
|00001050| 2d 3d 20 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |-= (cons|t char *|
|00001060| 73 6f 75 72 63 65 29 3b | 09 09 09 09 09 09 09 09 |source);|........|
|00001070| 09 2f 2f 20 61 20 2d 3d | 20 22 32 20 42 20 52 65 |.// a -=| "2 B Re|
|00001080| 6d 6f 76 65 64 22 3b 0d | 09 09 41 6c 70 68 61 62 |moved";.|..Alphab|
|00001090| 65 74 26 20 6f 70 65 72 | 61 74 6f 72 2d 3d 20 28 |et& oper|ator-= (|
|000010a0| 63 6f 6e 73 74 20 4e 53 | 74 72 69 6e 67 26 20 73 |const NS|tring& s|
|000010b0| 6f 75 72 63 65 29 3b 09 | 09 09 09 09 09 09 09 2f |ource);.|......./|
|000010c0| 2f 20 61 20 2d 3d 20 73 | 3b 0d 09 09 09 2f 2f 20 |/ a -= s|;....// |
|000010d0| 52 65 6d 6f 76 65 20 74 | 68 65 20 67 69 76 65 6e |Remove t|he given|
|000010e0| 20 73 74 72 69 6e 67 27 | 73 20 6c 65 74 74 65 72 | string'|s letter|
|000010f0| 73 20 66 72 6f 6d 20 74 | 68 65 20 61 6c 70 68 61 |s from t|he alpha|
|00001100| 62 65 74 0d 09 09 0d 09 | 09 69 6e 6c 69 6e 65 20 |bet.....|.inline |
|00001110| 41 6c 70 68 61 62 65 74 | 20 6f 70 65 72 61 74 6f |Alphabet| operato|
|00001120| 72 2d 20 28 63 6f 6e 73 | 74 20 63 68 61 72 20 2a |r- (cons|t char *|
|00001130| 73 6f 75 72 63 65 29 20 | 63 6f 6e 73 74 3b 09 09 |source) |const;..|
|00001140| 09 09 09 09 2f 2f 20 61 | 20 3d 20 62 20 2d 20 22 |....// a| = b - "|
|00001150| 32 20 42 20 52 65 6d 6f | 76 65 64 22 3b 0d 09 09 |2 B Remo|ved";...|
|00001160| 09 2f 2f 20 52 65 74 75 | 72 6e 20 61 20 6e 65 77 |.// Retu|rn a new|
|00001170| 20 61 6c 70 68 61 62 65 | 74 20 77 68 69 63 68 20 | alphabe|t which |
|00001180| 69 73 20 63 6f 6e 73 74 | 72 75 63 74 65 64 20 62 |is const|ructed b|
|00001190| 79 0d 09 09 09 2f 2f 09 | 09 72 65 6d 6f 76 69 6e |y....//.|.removin|
|000011a0| 67 20 74 68 65 20 67 69 | 76 65 6e 20 73 74 72 69 |g the gi|ven stri|
|000011b0| 6e 67 27 73 20 6c 65 74 | 74 65 72 73 20 66 72 6f |ng's let|ters fro|
|000011c0| 6d 20 74 68 69 73 20 61 | 6c 70 68 61 62 65 74 2e |m this a|lphabet.|
|000011d0| 0d 09 09 09 2f 2f 20 4e | 6f 74 65 3a 20 41 6e 20 |....// N|ote: An |
|000011e0| 4e 53 74 72 69 6e 67 20 | 65 71 75 69 76 61 6c 65 |NString |equivale|
|000011f0| 6e 74 20 64 6f 65 73 20 | 6e 6f 74 20 65 78 69 73 |nt does |not exis|
|00001200| 74 20 66 6f 72 20 74 68 | 69 73 20 6d 65 74 68 6f |t for th|is metho|
|00001210| 64 0d 09 09 09 2f 2f 09 | 09 74 6f 20 61 76 6f 69 |d....//.|.to avoi|
|00001220| 64 20 61 6e 20 61 6d 62 | 69 67 75 69 74 79 20 77 |d an amb|iguity w|
|00001230| 69 74 68 20 74 68 65 20 | 22 6f 70 65 72 61 74 6f |ith the |"operato|
|00001240| 72 2d 22 20 66 75 6e 63 | 74 69 6f 6e 0d 09 09 09 |r-" func|tion....|
|00001250| 2f 2f 09 09 64 65 63 6c | 61 72 65 64 20 69 6e 20 |//..decl|ared in |
|00001260| 74 68 65 20 4e 53 74 72 | 69 6e 67 20 63 6c 61 73 |the NStr|ing clas|
|00001270| 73 2c 20 77 68 69 63 68 | 20 6d 65 61 6e 73 3a 20 |s, which| means: |
|00001280| 72 65 6d 6f 76 65 0d 09 | 09 09 2f 2f 09 09 69 6e |remove..|..//..in|
|00001290| 69 74 69 61 6c 20 6f 63 | 63 75 72 72 65 6e 63 65 |itial oc|currence|
|000012a0| 73 20 6f 66 20 61 6e 20 | 61 6c 70 68 61 62 65 74 |s of an |alphabet|
|000012b0| 20 66 72 6f 6d 20 61 6e | 20 4e 53 74 72 69 6e 67 | from an| NString|
|000012c0| 2e 0d 0d 0d 09 09 2f 2a | 2d 2d 2d 2d 2d 2d 2d 2d |....../*|--------|
|000012d0| 20 54 65 73 74 69 6e 67 | 20 74 68 65 20 6d 65 6d | Testing| the mem|
|000012e0| 62 65 72 73 68 69 70 20 | 6f 66 20 6f 6e 65 20 6f |bership |of one o|
|000012f0| 72 20 6d 6f 72 65 20 6c | 65 74 74 65 72 73 20 2d |r more l|etters -|
|00001300| 2d 2d 2d 2d 2d 2d 2d 2a | 2f 0d 09 09 0d 09 09 69 |-------*|/......i|
|00001310| 6e 74 20 63 6f 6e 74 61 | 69 6e 73 20 28 63 6f 6e |nt conta|ins (con|
|00001320| 73 74 20 63 68 61 72 20 | 65 6c 65 6d 65 6e 74 29 |st char |element)|
|00001330| 20 63 6f 6e 73 74 3b 09 | 09 09 09 09 09 09 09 09 | const;.|........|
|00001340| 09 09 2f 2f 20 69 66 20 | 28 61 2e 63 6f 6e 74 61 |..// if |(a.conta|
|00001350| 69 6e 73 28 27 66 27 29 | 29 20 2e 2e 2e 0d 09 09 |ins('f')|) ......|
|00001360| 09 2f 2f 09 52 65 74 75 | 72 6e 20 31 20 69 66 66 |.//.Retu|rn 1 iff|
|00001370| 20 74 68 65 20 67 69 76 | 65 6e 20 65 6c 65 6d 65 | the giv|en eleme|
|00001380| 6e 74 20 69 73 20 61 20 | 6d 65 6d 62 65 72 20 6f |nt is a |member o|
|00001390| 66 20 74 68 65 20 61 6c | 70 68 61 62 65 74 2c 0d |f the al|phabet,.|
|000013a0| 09 09 09 2f 2f 09 09 30 | 20 6f 74 68 65 72 77 69 |...//..0| otherwi|
|000013b0| 73 65 2e 0d 0d 09 09 69 | 6e 74 20 63 6f 6e 74 61 |se.....i|nt conta|
|000013c0| 69 6e 73 20 28 63 6f 6e | 73 74 20 63 68 61 72 20 |ins (con|st char |
|000013d0| 2a 65 6c 65 6d 65 6e 74 | 73 29 20 63 6f 6e 73 74 |*element|s) const|
|000013e0| 3b 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 69 66 |;.......|...// if|
|000013f0| 20 28 61 2e 63 6f 6e 74 | 61 69 6e 73 28 22 48 65 | (a.cont|ains("He|
|00001400| 6c 6c 6f 22 29 29 20 2e | 2e 2e 0d 09 09 69 6e 74 |llo")) .|.....int|
|00001410| 20 63 6f 6e 74 61 69 6e | 73 20 28 63 6f 6e 73 74 | contain|s (const|
|00001420| 20 4e 53 74 72 69 6e 67 | 26 20 65 6c 65 6d 65 6e | NString|& elemen|
|00001430| 74 73 29 20 63 6f 6e 73 | 74 3b 09 09 09 09 09 09 |ts) cons|t;......|
|00001440| 09 09 2f 2f 20 69 66 20 | 28 61 2e 63 6f 6e 74 61 |..// if |(a.conta|
|00001450| 69 6e 73 28 73 29 29 20 | 2e 2e 2e 0d 09 09 09 2f |ins(s)) |......./|
|00001460| 2f 20 52 65 74 75 72 6e | 20 31 20 69 66 66 20 74 |/ Return| 1 iff t|
|00001470| 68 65 20 61 6c 70 68 61 | 62 65 74 20 63 6f 6e 74 |he alpha|bet cont|
|00001480| 61 69 6e 73 20 41 4c 4c | 20 4f 46 20 74 68 65 20 |ains ALL| OF the |
|00001490| 67 69 76 65 6e 20 73 74 | 72 69 6e 67 27 73 20 6c |given st|ring's l|
|000014a0| 65 74 74 65 72 73 0d 0d | 09 09 2f 2a 2d 2d 2d 2d |etters..|../*----|
|000014b0| 2d 2d 2d 2d 20 4c 6f 67 | 69 63 61 6c 20 6f 70 65 |---- Log|ical ope|
|000014c0| 72 61 74 69 6f 6e 73 20 | 74 68 61 74 20 61 66 66 |rations |that aff|
|000014d0| 65 63 74 20 74 68 65 20 | 77 68 6f 6c 65 20 61 6c |ect the |whole al|
|000014e0| 70 68 61 62 65 74 20 2d | 2d 2d 2d 2d 2d 2d 2d 2a |phabet -|-------*|
|000014f0| 2f 0d 0d 09 09 41 6c 70 | 68 61 62 65 74 26 20 6f |/....Alp|habet& o|
|00001500| 70 65 72 61 74 6f 72 2b | 3d 20 28 63 6f 6e 73 74 |perator+|= (const|
|00001510| 20 41 6c 70 68 61 62 65 | 74 26 20 6f 74 68 65 72 | Alphabe|t& other|
|00001520| 29 3b 09 09 09 09 09 09 | 09 09 2f 2f 20 61 20 2b |);......|..// a +|
|00001530| 3d 20 62 3b 0d 09 09 09 | 2f 2f 09 50 65 72 66 6f |= b;....|//.Perfo|
|00001540| 72 6d 20 61 20 6c 6f 67 | 69 63 61 6c 20 4f 52 20 |rm a log|ical OR |
|00001550| 62 65 74 77 65 65 6e 20 | 74 68 69 73 20 61 6c 70 |between |this alp|
|00001560| 68 61 62 65 74 20 61 6e | 64 20 74 68 65 20 6f 74 |habet an|d the ot|
|00001570| 68 65 72 20 6f 6e 65 2c | 0d 09 09 09 2f 2f 09 09 |her one,|....//..|
|00001580| 74 68 65 6e 20 73 74 6f | 72 65 20 74 68 65 20 72 |then sto|re the r|
|00001590| 65 73 75 6c 74 20 69 6e | 20 74 68 69 73 20 61 6c |esult in| this al|
|000015a0| 70 68 61 62 65 74 2e 0d | 0d 09 09 41 6c 70 68 61 |phabet..|...Alpha|
|000015b0| 62 65 74 26 20 6f 70 65 | 72 61 74 6f 72 2a 3d 20 |bet& ope|rator*= |
|000015c0| 28 63 6f 6e 73 74 20 41 | 6c 70 68 61 62 65 74 26 |(const A|lphabet&|
|000015d0| 20 6f 74 68 65 72 29 3b | 09 09 09 09 09 09 09 09 | other);|........|
|000015e0| 2f 2f 20 61 20 2a 3d 20 | 62 3b 0d 09 09 09 2f 2f |// a *= |b;....//|
|000015f0| 09 50 65 72 66 6f 72 6d | 20 61 20 6c 6f 67 69 63 |.Perform| a logic|
|00001600| 61 6c 20 41 4e 44 20 62 | 65 74 77 65 65 6e 20 74 |al AND b|etween t|
|00001610| 68 69 73 20 61 6c 70 68 | 61 62 65 74 20 61 6e 64 |his alph|abet and|
|00001620| 20 74 68 65 20 6f 74 68 | 65 72 20 6f 6e 65 2c 0d | the oth|er one,.|
|00001630| 09 09 09 2f 2f 09 09 74 | 68 65 6e 20 73 74 6f 72 |...//..t|hen stor|
|00001640| 65 20 74 68 65 20 72 65 | 73 75 6c 74 20 69 6e 20 |e the re|sult in |
|00001650| 74 68 69 73 20 61 6c 70 | 68 61 62 65 74 2e 0d 0d |this alp|habet...|
|00001660| 09 09 41 6c 70 68 61 62 | 65 74 26 20 6f 70 65 72 |..Alphab|et& oper|
|00001670| 61 74 6f 72 2d 3d 20 28 | 63 6f 6e 73 74 20 41 6c |ator-= (|const Al|
|00001680| 70 68 61 62 65 74 26 20 | 6f 74 68 65 72 29 3b 09 |phabet& |other);.|
|00001690| 09 09 09 09 09 09 09 2f | 2f 20 61 20 2d 3d 20 62 |......./|/ a -= b|
|000016a0| 3b 0d 09 09 09 2f 2f 09 | 53 74 6f 72 65 20 74 68 |;....//.|Store th|
|000016b0| 65 20 6c 6f 67 69 63 61 | 6c 20 44 49 46 46 45 52 |e logica|l DIFFER|
|000016c0| 45 4e 43 45 20 62 65 74 | 77 65 65 6e 20 74 68 69 |ENCE bet|ween thi|
|000016d0| 73 20 61 6c 70 68 61 62 | 65 74 20 61 6e 64 20 74 |s alphab|et and t|
|000016e0| 68 65 0d 09 09 09 2f 2f | 09 09 6f 74 68 65 72 20 |he....//|..other |
|000016f0| 6f 6e 65 20 69 6e 20 74 | 68 69 73 20 61 6c 70 68 |one in t|his alph|
|00001700| 61 62 65 74 2e 0d 0d 09 | 09 69 6e 6c 69 6e 65 20 |abet....|.inline |
|00001710| 41 6c 70 68 61 62 65 74 | 20 6f 70 65 72 61 74 6f |Alphabet| operato|
|00001720| 72 2b 20 28 63 6f 6e 73 | 74 20 41 6c 70 68 61 62 |r+ (cons|t Alphab|
|00001730| 65 74 26 20 6f 74 68 65 | 72 29 20 63 6f 6e 73 74 |et& othe|r) const|
|00001740| 3b 09 09 09 09 2f 2f 20 | 61 20 3d 20 62 20 2b 20 |;....// |a = b + |
|00001750| 63 3b 0d 09 09 09 2f 2f | 09 50 65 72 66 6f 72 6d |c;....//|.Perform|
|00001760| 20 61 20 6c 6f 67 69 63 | 61 6c 20 4f 52 20 62 65 | a logic|al OR be|
|00001770| 74 77 65 65 6e 20 74 68 | 69 73 20 61 6c 70 68 61 |tween th|is alpha|
|00001780| 62 65 74 20 61 6e 64 20 | 74 68 65 20 6f 74 68 65 |bet and |the othe|
|00001790| 72 20 6f 6e 65 2c 0d 09 | 09 09 2f 2f 09 09 74 68 |r one,..|..//..th|
|000017a0| 65 6e 20 72 65 74 75 72 | 6e 20 74 68 65 20 72 65 |en retur|n the re|
|000017b0| 73 75 6c 74 2e 0d 0d 09 | 09 69 6e 6c 69 6e 65 20 |sult....|.inline |
|000017c0| 41 6c 70 68 61 62 65 74 | 20 6f 70 65 72 61 74 6f |Alphabet| operato|
|000017d0| 72 2a 20 28 63 6f 6e 73 | 74 20 41 6c 70 68 61 62 |r* (cons|t Alphab|
|000017e0| 65 74 26 20 6f 74 68 65 | 72 29 20 63 6f 6e 73 74 |et& othe|r) const|
|000017f0| 3b 09 09 09 09 2f 2f 20 | 61 20 3d 20 62 20 2a 20 |;....// |a = b * |
|00001800| 63 3b 0d 09 09 09 2f 2f | 09 50 65 72 66 6f 72 6d |c;....//|.Perform|
|00001810| 20 61 20 6c 6f 67 69 63 | 61 6c 20 41 4e 44 20 62 | a logic|al AND b|
|00001820| 65 74 77 65 65 6e 20 74 | 68 69 73 20 61 6c 70 68 |etween t|his alph|
|00001830| 61 62 65 74 20 61 6e 64 | 20 74 68 65 20 6f 74 68 |abet and| the oth|
|00001840| 65 72 20 6f 6e 65 2c 0d | 09 09 09 2f 2f 09 09 74 |er one,.|...//..t|
|00001850| 68 65 6e 20 72 65 74 75 | 72 6e 20 74 68 65 20 72 |hen retu|rn the r|
|00001860| 65 73 75 6c 74 2e 0d 0d | 09 09 69 6e 6c 69 6e 65 |esult...|..inline|
|00001870| 20 41 6c 70 68 61 62 65 | 74 20 6f 70 65 72 61 74 | Alphabe|t operat|
|00001880| 6f 72 2d 20 28 63 6f 6e | 73 74 20 41 6c 70 68 61 |or- (con|st Alpha|
|00001890| 62 65 74 26 20 6f 74 68 | 65 72 29 20 63 6f 6e 73 |bet& oth|er) cons|
|000018a0| 74 3b 09 09 09 09 2f 2f | 20 61 20 3d 20 62 20 2d |t;....//| a = b -|
|000018b0| 20 63 3b 0d 09 09 09 2f | 2f 09 52 65 74 75 72 6e | c;..../|/.Return|
|000018c0| 20 74 68 65 20 6c 6f 67 | 69 63 61 6c 20 44 49 46 | the log|ical DIF|
|000018d0| 46 45 52 45 4e 43 45 20 | 62 65 74 77 65 65 6e 20 |FERENCE |between |
|000018e0| 74 68 69 73 20 61 6c 70 | 68 61 62 65 74 20 61 6e |this alp|habet an|
|000018f0| 64 20 74 68 65 20 6f 74 | 68 65 72 20 6f 6e 65 2e |d the ot|her one.|
|00001900| 0d 0d 0d 09 09 69 6e 6c | 69 6e 65 20 41 6c 70 68 |.....inl|ine Alph|
|00001910| 61 62 65 74 26 20 6f 70 | 65 72 61 74 6f 72 2a 3d |abet& op|erator*=|
|00001920| 20 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 73 74 | (const |char *st|
|00001930| 72 69 6e 67 29 3b 09 09 | 09 09 09 09 09 2f 2f 20 |ring);..|.....// |
|00001940| 61 20 2a 3d 20 22 48 65 | 6c 6c 6f 22 3b 0d 09 09 |a *= "He|llo";...|
|00001950| 69 6e 6c 69 6e 65 20 41 | 6c 70 68 61 62 65 74 26 |inline A|lphabet&|
|00001960| 20 6f 70 65 72 61 74 6f | 72 2a 3d 20 28 63 6f 6e | operato|r*= (con|
|00001970| 73 74 20 4e 53 74 72 69 | 6e 67 26 20 73 74 72 69 |st NStri|ng& stri|
|00001980| 6e 67 29 3b 09 09 09 09 | 09 2f 2f 20 61 20 2a 3d |ng);....|.// a *=|
|00001990| 20 73 3b 0d 09 09 09 2f | 2f 09 50 65 72 66 6f 72 | s;..../|/.Perfor|
|000019a0| 6d 20 61 20 6c 6f 67 69 | 63 61 6c 20 41 4e 44 20 |m a logi|cal AND |
|000019b0| 62 65 74 77 65 65 6e 20 | 74 68 69 73 20 61 6c 70 |between |this alp|
|000019c0| 68 61 62 65 74 20 61 6e | 64 20 74 68 65 20 6f 6e |habet an|d the on|
|000019d0| 65 0d 09 09 09 2f 2f 09 | 09 64 65 66 69 6e 65 64 |e....//.|.defined|
|000019e0| 20 62 79 20 74 68 65 20 | 6c 65 74 74 65 72 73 20 | by the |letters |
|000019f0| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 2c 20 74 |of the s|tring, t|
|00001a00| 68 65 6e 20 73 74 6f 72 | 65 20 74 68 65 20 72 65 |hen stor|e the re|
|00001a10| 73 75 6c 74 20 69 6e 20 | 74 68 69 73 20 61 6c 70 |sult in |this alp|
|00001a20| 68 61 62 65 74 2e 0d 0d | 09 09 69 6e 6c 69 6e 65 |habet...|..inline|
|00001a30| 20 41 6c 70 68 61 62 65 | 74 20 6f 70 65 72 61 74 | Alphabe|t operat|
|00001a40| 6f 72 2a 20 28 63 6f 6e | 73 74 20 63 68 61 72 20 |or* (con|st char |
|00001a50| 2a 73 74 72 69 6e 67 29 | 20 63 6f 6e 73 74 3b 09 |*string)| const;.|
|00001a60| 09 09 09 09 09 2f 2f 20 | 61 20 3d 20 62 20 2a 20 |.....// |a = b * |
|00001a70| 22 48 65 6c 6c 6f 22 3b | 0d 09 09 69 6e 6c 69 6e |"Hello";|...inlin|
|00001a80| 65 20 41 6c 70 68 61 62 | 65 74 20 6f 70 65 72 61 |e Alphab|et opera|
|00001a90| 74 6f 72 2a 20 28 63 6f | 6e 73 74 20 4e 53 74 72 |tor* (co|nst NStr|
|00001aa0| 69 6e 67 26 20 73 74 72 | 69 6e 67 29 20 63 6f 6e |ing& str|ing) con|
|00001ab0| 73 74 3b 09 09 09 09 2f | 2f 20 61 20 3d 20 62 20 |st;..../|/ a = b |
|00001ac0| 2a 20 73 3b 0d 09 09 09 | 2f 2f 09 50 65 72 66 6f |* s;....|//.Perfo|
|00001ad0| 72 6d 20 61 20 6c 6f 67 | 69 63 61 6c 20 41 4e 44 |rm a log|ical AND|
|00001ae0| 20 62 65 74 77 65 65 6e | 20 74 68 69 73 20 61 6c | between| this al|
|00001af0| 70 68 61 62 65 74 20 61 | 6e 64 20 74 68 65 20 6f |phabet a|nd the o|
|00001b00| 6e 65 0d 09 09 09 2f 2f | 09 09 64 65 66 69 6e 65 |ne....//|..define|
|00001b10| 64 20 62 79 20 74 68 65 | 20 6c 65 74 74 65 72 73 |d by the| letters|
|00001b20| 20 6f 66 20 74 68 65 20 | 73 74 72 69 6e 67 2c 20 | of the |string, |
|00001b30| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 74 68 65 20 |then ret|urn the |
|00001b40| 72 65 73 75 6c 74 2e 0d | 09 09 09 0d 09 09 09 0d |result..|........|
|00001b50| 09 09 41 6c 70 68 61 62 | 65 74 26 20 63 6f 6d 70 |..Alphab|et& comp|
|00001b60| 6c 65 6d 65 6e 74 20 28 | 76 6f 69 64 29 3b 09 09 |lement (|void);..|
|00001b70| 09 09 09 09 09 09 09 09 | 09 09 09 09 2f 2f 20 61 |........|....// a|
|00001b80| 2e 63 6f 6d 70 6c 65 6d | 65 6e 74 28 29 3b 0d 09 |.complem|ent();..|
|00001b90| 09 09 2f 2f 20 54 72 61 | 6e 73 66 6f 72 6d 20 74 |..// Tra|nsform t|
|00001ba0| 68 69 73 20 61 6c 70 68 | 61 62 65 74 20 69 6e 74 |his alph|abet int|
|00001bb0| 6f 20 69 74 73 20 63 6f | 6d 70 6c 65 6d 65 6e 74 |o its co|mplement|
|00001bc0| 2e 0d 09 09 09 0d 09 09 | 69 6e 6c 69 6e 65 20 41 |........|inline A|
|00001bd0| 6c 70 68 61 62 65 74 20 | 6f 70 65 72 61 74 6f 72 |lphabet |operator|
|00001be0| 2d 20 28 76 6f 69 64 29 | 20 63 6f 6e 73 74 3b 09 |- (void)| const;.|
|00001bf0| 09 09 09 09 09 09 09 09 | 09 09 2f 2f 20 62 20 3d |........|..// b =|
|00001c00| 20 2d 61 3b 0d 09 09 09 | 2f 2f 20 52 65 74 75 72 | -a;....|// Retur|
|00001c10| 6e 20 74 68 69 73 20 61 | 6c 70 68 61 62 65 74 27 |n this a|lphabet'|
|00001c20| 73 20 63 6f 6d 70 6c 65 | 6d 65 6e 74 2e 0d 0d 0d |s comple|ment....|
|00001c30| 09 09 2f 2a 2d 2d 2d 2d | 2d 2d 2d 2d 20 49 74 65 |../*----|---- Ite|
|00001c40| 72 61 74 6f 72 20 2d 2d | 2d 2d 2d 2d 2d 2d 2a 2f |rator --|------*/|
|00001c50| 0d 0d 09 09 65 6e 75 6d | 20 64 69 72 65 63 74 69 |....enum| directi|
|00001c60| 6f 6e 5f 74 20 7b 46 4f | 52 57 41 52 44 2c 20 42 |on_t {FO|RWARD, B|
|00001c70| 41 43 4b 57 41 52 44 7d | 3b 0d 0d 09 09 41 6c 70 |ACKWARD}|;....Alp|
|00001c80| 68 61 62 65 74 26 20 74 | 68 72 6f 75 67 68 20 28 |habet& t|hrough (|
|00001c90| 69 6e 74 20 28 2a 61 63 | 74 69 6f 6e 29 28 63 6f |int (*ac|tion)(co|
|00001ca0| 6e 73 74 20 63 68 61 72 | 2c 20 41 6c 70 68 61 62 |nst char|, Alphab|
|00001cb0| 65 74 26 29 2c 20 64 69 | 72 65 63 74 69 6f 6e 5f |et&), di|rection_|
|00001cc0| 74 20 64 69 72 20 3d 20 | 46 4f 52 57 41 52 44 29 |t dir = |FORWARD)|
|00001cd0| 3b 0d 09 09 09 2f 2f 09 | 54 72 61 76 65 72 73 65 |;....//.|Traverse|
|00001ce0| 20 74 68 65 20 61 6c 70 | 68 61 62 65 74 20 69 6e | the alp|habet in|
|00001cf0| 20 74 68 65 20 73 70 65 | 63 69 66 69 65 64 20 64 | the spe|cified d|
|00001d00| 69 72 65 63 74 6f 6e 2c | 20 63 61 6c 6c 69 6e 67 |irecton,| calling|
|00001d10| 20 61 74 20 65 61 63 68 | 20 73 74 65 70 20 74 68 | at each| step th|
|00001d20| 65 20 67 69 76 65 6e 20 | 66 75 6e 63 74 69 6f 6e |e given |function|
|00001d30| 2e 0d 09 09 09 2f 2f 20 | 54 68 65 20 22 61 63 74 |.....// |The "act|
|00001d40| 69 6f 6e 22 20 66 75 6e | 63 74 69 6f 6e 20 72 65 |ion" fun|ction re|
|00001d50| 63 65 69 76 65 73 20 61 | 73 20 70 61 72 61 6d 65 |ceives a|s parame|
|00001d60| 74 65 72 73 20 74 68 65 | 20 63 75 72 72 65 6e 74 |ters the| current|
|00001d70| 20 63 68 61 72 61 63 74 | 65 72 0d 09 09 09 2f 2f | charact|er....//|
|00001d80| 09 09 61 6e 64 20 61 20 | 72 65 66 65 72 65 6e 63 |..and a |referenc|
|00001d90| 65 20 74 6f 20 74 68 65 | 20 61 6c 70 68 61 62 65 |e to the| alphabe|
|00001da0| 74 20 62 65 69 6e 67 20 | 74 72 61 76 65 72 73 65 |t being |traverse|
|00001db0| 64 2e 0d 09 09 09 2f 2f | 09 49 66 20 74 68 65 20 |d.....//|.If the |
|00001dc0| 61 6c 70 68 61 62 65 74 | 20 69 73 20 65 6d 70 74 |alphabet| is empt|
|00001dd0| 79 2c 20 74 68 65 20 69 | 74 65 72 61 74 6f 72 20 |y, the i|terator |
|00001de0| 64 6f 65 73 20 6e 6f 74 | 68 69 6e 67 2e 0d 09 09 |does not|hing....|
|00001df0| 09 2f 2f 09 49 66 20 74 | 68 65 20 61 6c 70 68 61 |.//.If t|he alpha|
|00001e00| 62 65 74 20 69 73 20 61 | 6c 74 65 72 65 64 20 64 |bet is a|ltered d|
|00001e10| 75 72 69 6e 67 20 69 74 | 65 72 61 74 69 6f 6e 2c |uring it|eration,|
|00001e20| 20 74 68 65 73 65 20 6d | 6f 64 69 66 69 63 61 74 | these m|odificat|
|00001e30| 69 6f 6e 73 20 77 69 6c | 6c 20 4e 4f 54 20 61 66 |ions wil|l NOT af|
|00001e40| 66 65 63 74 20 74 68 65 | 20 69 74 65 72 61 74 69 |fect the| iterati|
|00001e50| 6f 6e 0d 09 09 09 2f 2f | 09 09 70 72 6f 63 65 73 |on....//|..proces|
|00001e60| 73 2c 20 61 73 20 74 68 | 65 20 61 6c 70 68 61 62 |s, as th|e alphab|
|00001e70| 65 74 20 62 65 69 6e 67 | 20 74 72 61 76 65 72 73 |et being| travers|
|00001e80| 65 64 20 69 73 20 61 63 | 74 75 61 6c 6c 79 20 61 |ed is ac|tually a|
|00001e90| 20 63 6f 70 79 20 6f 66 | 20 74 68 65 20 6f 72 69 | copy of| the ori|
|00001ea0| 67 69 6e 61 6c 20 61 6c | 70 68 61 62 65 74 2e 0d |ginal al|phabet..|
|00001eb0| 09 09 09 2f 2f 09 54 68 | 65 20 22 61 63 74 69 6f |...//.Th|e "actio|
|00001ec0| 6e 22 20 6d 61 79 20 69 | 6e 74 65 72 72 75 70 74 |n" may i|nterrupt|
|00001ed0| 20 74 68 65 20 69 74 65 | 72 61 74 69 6f 6e 20 70 | the ite|ration p|
|00001ee0| 72 6f 63 65 73 73 20 62 | 79 20 72 65 74 75 72 6e |rocess b|y return|
|00001ef0| 69 6e 67 20 61 20 6e 6f | 6e 2d 7a 65 72 6f 20 76 |ing a no|n-zero v|
|00001f00| 61 6c 75 65 2e 0d 09 09 | 09 2f 2f 09 09 5a 65 72 |alue....|.//..Zer|
|00001f10| 6f 20 6d 75 73 74 20 62 | 65 20 72 65 74 75 72 6e |o must b|e return|
|00001f20| 65 64 20 66 6f 72 20 74 | 68 65 20 69 74 65 72 61 |ed for t|he itera|
|00001f30| 74 69 6f 6e 20 74 6f 20 | 70 72 6f 63 65 65 64 20 |tion to |proceed |
|00001f40| 75 6e 74 69 6c 20 74 68 | 65 20 65 6e 64 20 6f 66 |until th|e end of|
|00001f50| 20 74 68 65 20 61 6c 70 | 68 61 62 65 74 20 69 73 | the alp|habet is|
|00001f60| 20 72 65 61 63 68 65 64 | 2e 0d 09 09 09 2f 2f 09 | reached|.....//.|
|00001f70| 54 68 65 20 69 74 65 72 | 61 74 6f 72 20 72 65 74 |The iter|ator ret|
|00001f80| 75 72 6e 73 20 61 20 72 | 65 66 65 72 65 6e 63 65 |urns a r|eference|
|00001f90| 20 74 6f 20 74 68 65 20 | 61 6c 70 68 61 62 65 74 | to the |alphabet|
|00001fa0| 20 62 65 69 6e 67 20 74 | 72 61 76 65 72 73 65 64 | being t|raversed|
|00001fb0| 2e 0d 09 09 09 0d 09 09 | 09 2f 2f 09 45 78 61 6d |........|.//.Exam|
|00001fc0| 70 6c 65 3a 20 22 61 2e | 74 68 72 6f 75 67 68 28 |ple: "a.|through(|
|00001fd0| 26 70 72 69 6e 74 2c 20 | 41 6c 70 68 61 62 65 74 |&print, |Alphabet|
|00001fe0| 3a 3a 46 4f 52 57 41 52 | 44 29 22 20 77 68 65 72 |::FORWAR|D)" wher|
|00001ff0| 65 20 70 72 69 6e 74 28 | 29 20 68 61 73 20 62 65 |e print(|) has be|
|00002000| 65 6e 20 70 72 65 76 69 | 6f 75 73 6c 79 20 64 65 |en previ|ously de|
|00002010| 66 69 6e 65 64 3b 0d 0d | 0d 09 09 2f 2a 2d 2d 2d |fined;..|.../*---|
|00002020| 2d 2d 2d 2d 2d 20 47 65 | 74 74 69 6e 67 20 74 68 |----- Ge|tting th|
|00002030| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 61 6c 70 68 |e number| of alph|
|00002040| 61 62 65 74 20 65 6c 65 | 6d 65 6e 74 73 20 2d 2d |abet ele|ments --|
|00002050| 2d 2d 2d 2d 2d 2d 2a 2f | 0d 0d 09 09 75 6e 73 69 |------*/|....unsi|
|00002060| 67 6e 65 64 20 69 6e 74 | 20 63 61 72 64 20 28 76 |gned int| card (v|
|00002070| 6f 69 64 29 20 63 6f 6e | 73 74 3b 09 09 09 09 09 |oid) con|st;.....|
|00002080| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 6e 20 3d 20 |........|.// n = |
|00002090| 61 2e 63 61 72 64 28 29 | 3b 0d 09 09 09 2f 2f 09 |a.card()|;....//.|
|000020a0| 52 65 74 75 72 6e 20 74 | 68 65 20 6e 75 6d 62 65 |Return t|he numbe|
|000020b0| 72 20 6f 66 20 65 6c 65 | 6d 65 6e 74 73 20 69 6e |r of ele|ments in|
|000020c0| 20 74 68 69 73 20 61 6c | 70 68 61 62 65 74 2e 0d | this al|phabet..|
|000020d0| 0d 0d 09 09 2f 2a 2d 2d | 2d 2d 2d 2d 2d 2d 20 43 |..../*--|------ C|
|000020e0| 6f 6d 70 61 72 69 73 6f | 6e 73 20 2d 2d 2d 2d 2d |ompariso|ns -----|
|000020f0| 2d 2d 2d 2a 2f 0d 0d 09 | 09 2f 2f 20 54 68 65 20 |---*/...|.// The |
|00002100| 66 75 6e 63 74 69 6f 6e | 20 76 61 72 69 61 6e 74 |function| variant|
|00002110| 73 20 74 68 61 74 20 74 | 61 6b 65 20 61 20 73 74 |s that t|ake a st|
|00002120| 72 69 6e 67 20 6f 72 20 | 61 6e 20 4e 53 74 72 69 |ring or |an NStri|
|00002130| 6e 67 20 61 72 67 75 6d | 65 6e 74 0d 09 09 2f 2f |ng argum|ent...//|
|00002140| 09 20 63 6f 6e 73 74 72 | 75 63 74 20 61 20 74 65 |. constr|uct a te|
|00002150| 6d 70 6f 72 61 72 79 20 | 61 6c 70 68 61 62 65 74 |mporary |alphabet|
|00002160| 20 66 72 6f 6d 20 74 68 | 65 20 73 74 72 69 6e 67 | from th|e string|
|00002170| 27 73 20 6c 65 74 74 65 | 72 73 20 74 6f 20 75 73 |'s lette|rs to us|
|00002180| 65 20 61 73 0d 09 09 2f | 2f 20 22 6f 74 68 65 72 |e as.../|/ "other|
|00002190| 20 61 6c 70 68 61 62 65 | 74 22 2e 0d 0d 09 09 69 | alphabe|t".....i|
|000021a0| 6e 74 20 6f 70 65 72 61 | 74 6f 72 3d 3d 20 28 63 |nt opera|tor== (c|
|000021b0| 6f 6e 73 74 20 41 6c 70 | 68 61 62 65 74 26 20 6f |onst Alp|habet& o|
|000021c0| 74 68 65 72 29 20 63 6f | 6e 73 74 3b 09 09 09 09 |ther) co|nst;....|
|000021d0| 09 09 09 09 2f 2f 20 69 | 66 20 28 61 20 3d 3d 20 |....// i|f (a == |
|000021e0| 62 29 20 2e 2e 2e 0d 09 | 09 69 6e 74 20 6f 70 65 |b) .....|.int ope|
|000021f0| 72 61 74 6f 72 3d 3d 20 | 28 63 6f 6e 73 74 20 63 |rator== |(const c|
|00002200| 68 61 72 20 2a 6f 74 68 | 65 72 29 20 63 6f 6e 73 |har *oth|er) cons|
|00002210| 74 3b 09 09 09 09 09 09 | 09 09 09 09 2f 2f 20 69 |t;......|....// i|
|00002220| 66 20 28 61 20 3d 3d 20 | 22 2a 2d 2b 2f 22 29 20 |f (a == |"*-+/") |
|00002230| 2e 2e 2e 0d 09 09 69 6e | 74 20 6f 70 65 72 61 74 |......in|t operat|
|00002240| 6f 72 3d 3d 20 28 63 6f | 6e 73 74 20 4e 53 74 72 |or== (co|nst NStr|
|00002250| 69 6e 67 26 20 6f 74 68 | 65 72 29 20 63 6f 6e 73 |ing& oth|er) cons|
|00002260| 74 3b 09 09 09 09 09 09 | 09 09 09 2f 2f 20 69 66 |t;......|...// if|
|00002270| 20 28 61 20 3d 3d 20 73 | 29 20 2e 2e 2e 0d 09 09 | (a == s|) ......|
|00002280| 09 2f 2f 20 52 65 74 75 | 72 6e 20 31 20 69 66 20 |.// Retu|rn 1 if |
|00002290| 74 68 69 73 20 61 6c 70 | 68 61 62 65 74 20 69 73 |this alp|habet is|
|000022a0| 20 65 71 75 61 6c 20 74 | 6f 20 74 68 65 20 6f 74 | equal t|o the ot|
|000022b0| 68 65 72 20 6f 6e 65 2c | 20 30 20 6f 74 68 65 72 |her one,| 0 other|
|000022c0| 77 69 73 65 2e 0d 09 09 | 09 0d 09 09 69 6e 6c 69 |wise....|....inli|
|000022d0| 6e 65 20 69 6e 74 20 6f | 70 65 72 61 74 6f 72 21 |ne int o|perator!|
|000022e0| 3d 20 28 63 6f 6e 73 74 | 20 41 6c 70 68 61 62 65 |= (const| Alphabe|
|000022f0| 74 26 20 6f 74 68 65 72 | 29 20 63 6f 6e 73 74 3b |t& other|) const;|
|00002300| 09 09 09 09 09 09 2f 2f | 20 69 66 20 28 61 20 21 |......//| if (a !|
|00002310| 3d 20 62 29 20 2e 2e 2e | 0d 09 09 69 6e 6c 69 6e |= b) ...|...inlin|
|00002320| 65 20 69 6e 74 20 6f 70 | 65 72 61 74 6f 72 21 3d |e int op|erator!=|
|00002330| 20 28 63 6f 6e 73 74 20 | 63 68 61 72 20 2a 6f 74 | (const |char *ot|
|00002340| 68 65 72 29 20 63 6f 6e | 73 74 3b 09 09 09 09 09 |her) con|st;.....|
|00002350| 09 09 09 2f 2f 20 69 66 | 20 28 61 20 21 3d 20 22 |...// if| (a != "|
|00002360| 41 42 43 22 29 20 2e 2e | 2e 0d 09 09 69 6e 6c 69 |ABC") ..|....inli|
|00002370| 6e 65 20 69 6e 74 20 6f | 70 65 72 61 74 6f 72 21 |ne int o|perator!|
|00002380| 3d 20 28 63 6f 6e 73 74 | 20 4e 53 74 72 69 6e 67 |= (const| NString|
|00002390| 26 20 6f 74 68 65 72 29 | 20 63 6f 6e 73 74 3b 09 |& other)| const;.|
|000023a0| 09 09 09 09 09 2f 2f 20 | 69 66 20 28 61 20 21 3d |.....// |if (a !=|
|000023b0| 20 73 29 20 2e 2e 2e 0d | 09 09 09 2f 2f 20 52 65 | s) ....|...// Re|
|000023c0| 74 75 72 6e 20 31 20 69 | 66 20 74 68 69 73 20 61 |turn 1 i|f this a|
|000023d0| 6c 70 68 61 62 65 74 20 | 69 73 20 6e 6f 74 20 65 |lphabet |is not e|
|000023e0| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 6f 74 68 65 |qual to |the othe|
|000023f0| 72 20 6f 6e 65 2c 20 30 | 20 6f 74 68 65 72 77 69 |r one, 0| otherwi|
|00002400| 73 65 2e 0d 0d 09 09 69 | 6e 6c 69 6e 65 20 69 6e |se.....i|nline in|
|00002410| 74 20 6f 70 65 72 61 74 | 6f 72 3c 3d 20 28 63 6f |t operat|or<= (co|
|00002420| 6e 73 74 20 41 6c 70 68 | 61 62 65 74 26 20 6f 74 |nst Alph|abet& ot|
|00002430| 68 65 72 29 20 63 6f 6e | 73 74 3b 09 09 09 09 09 |her) con|st;.....|
|00002440| 09 2f 2f 20 69 66 20 28 | 61 20 3c 3d 20 62 29 20 |.// if (|a <= b) |
|00002450| 2e 2e 2e 0d 09 09 69 6e | 6c 69 6e 65 20 69 6e 74 |......in|line int|
|00002460| 20 6f 70 65 72 61 74 6f | 72 3c 3d 20 28 63 6f 6e | operato|r<= (con|
|00002470| 73 74 20 63 68 61 72 20 | 2a 6f 74 68 65 72 29 20 |st char |*other) |
|00002480| 63 6f 6e 73 74 3b 09 09 | 09 09 09 09 09 09 2f 2f |const;..|......//|
|00002490| 20 69 66 20 28 61 20 3c | 3d 20 22 30 31 32 33 34 | if (a <|= "01234|
|000024a0| 35 36 37 38 39 22 29 20 | 2e 2e 2e 0d 09 09 69 6e |56789") |......in|
|000024b0| 6c 69 6e 65 20 69 6e 74 | 20 6f 70 65 72 61 74 6f |line int| operato|
|000024c0| 72 3c 3d 20 28 63 6f 6e | 73 74 20 4e 53 74 72 69 |r<= (con|st NStri|
|000024d0| 6e 67 26 20 6f 74 68 65 | 72 29 20 63 6f 6e 73 74 |ng& othe|r) const|
|000024e0| 3b 09 09 09 09 09 09 2f | 2f 20 69 66 20 28 61 20 |;....../|/ if (a |
|000024f0| 3c 3d 20 73 29 20 2e 2e | 2e 0d 09 09 09 2f 2f 20 |<= s) ..|.....// |
|00002500| 52 65 74 75 72 6e 20 31 | 20 69 66 20 74 68 69 73 |Return 1| if this|
|00002510| 20 61 6c 70 68 61 62 65 | 74 20 69 73 20 63 6f 6e | alphabe|t is con|
|00002520| 74 61 69 6e 65 64 20 69 | 6e 0d 09 09 09 2f 2f 09 |tained i|n....//.|
|00002530| 09 6f 72 20 65 71 75 61 | 6c 20 74 6f 20 74 68 65 |.or equa|l to the|
|00002540| 20 6f 74 68 65 72 20 6f | 6e 65 2c 20 30 20 6f 74 | other o|ne, 0 ot|
|00002550| 68 65 72 77 69 73 65 2e | 0d 0d 09 09 69 6e 6c 69 |herwise.|....inli|
|00002560| 6e 65 20 69 6e 74 20 6f | 70 65 72 61 74 6f 72 3c |ne int o|perator<|
|00002570| 20 28 63 6f 6e 73 74 20 | 41 6c 70 68 61 62 65 74 | (const |Alphabet|
|00002580| 26 20 6f 74 68 65 72 29 | 20 63 6f 6e 73 74 3b 09 |& other)| const;.|
|00002590| 09 09 09 09 09 09 2f 2f | 20 69 66 20 28 61 20 3c |......//| if (a <|
|000025a0| 20 62 29 20 2e 2e 2e 0d | 09 09 69 6e 6c 69 6e 65 | b) ....|..inline|
|000025b0| 20 69 6e 74 20 6f 70 65 | 72 61 74 6f 72 3c 20 28 | int ope|rator< (|
|000025c0| 63 6f 6e 73 74 20 63 68 | 61 72 20 2a 6f 74 68 65 |const ch|ar *othe|
|000025d0| 72 29 20 63 6f 6e 73 74 | 3b 09 09 09 09 09 09 09 |r) const|;.......|
|000025e0| 09 2f 2f 20 69 66 20 28 | 61 20 3c 20 22 31 32 33 |.// if (|a < "123|
|000025f0| 34 22 29 20 2e 2e 2e 0d | 09 09 69 6e 6c 69 6e 65 |4") ....|..inline|
|00002600| 20 69 6e 74 20 6f 70 65 | 72 61 74 6f 72 3c 20 28 | int ope|rator< (|
|00002610| 63 6f 6e 73 74 20 4e 53 | 74 72 69 6e 67 26 20 6f |const NS|tring& o|
|00002620| 74 68 65 72 29 20 63 6f | 6e 73 74 3b 09 09 09 09 |ther) co|nst;....|
|00002630| 09 09 09 2f 2f 20 69 66 | 20 28 61 20 3c 20 73 29 |...// if| (a < s)|
|00002640| 20 2e 2e 2e 0d 09 09 09 | 2f 2f 20 52 65 74 75 72 | .......|// Retur|
|00002650| 6e 20 31 20 69 66 20 74 | 68 69 73 20 61 6c 70 68 |n 1 if t|his alph|
|00002660| 61 62 65 74 20 69 73 20 | 63 6f 6e 74 61 69 6e 65 |abet is |containe|
|00002670| 64 20 69 6e 2c 0d 09 09 | 09 2f 2f 09 09 62 75 74 |d in,...|.//..but|
|00002680| 20 6e 6f 74 20 65 71 75 | 61 6c 20 74 6f 20 74 68 | not equ|al to th|
|00002690| 65 20 6f 74 68 65 72 20 | 6f 6e 65 2c 20 30 20 6f |e other |one, 0 o|
|000026a0| 74 68 65 72 77 69 73 65 | 2e 0d 7d 3b 0d 0d 23 69 |therwise|..};..#i|
|000026b0| 6e 63 6c 75 64 65 20 22 | 41 6c 70 68 61 62 65 74 |nclude "|Alphabet|
|000026c0| 5f 49 6e 6c 69 6e 65 73 | 2e 68 22 0d 0d 23 69 66 |_Inlines|.h"..#if|
|000026d0| 6e 64 65 66 20 4b 45 45 | 50 5f 41 4c 50 48 41 42 |ndef KEE|P_ALPHAB|
|000026e0| 45 54 5f 44 45 46 49 4e | 45 53 0d 09 23 75 6e 64 |ET_DEFIN|ES..#und|
|000026f0| 65 66 20 42 55 46 53 49 | 5a 45 0d 09 23 75 6e 64 |ef BUFSI|ZE..#und|
|00002700| 65 66 20 45 4c 54 5f 48 | 49 47 48 0d 09 23 75 6e |ef ELT_H|IGH..#un|
|00002710| 64 65 66 20 45 4c 54 5f | 4c 4f 57 0d 23 65 6e 64 |def ELT_|LOW.#end|
|00002720| 69 66 0d 0d 23 65 6e 64 | 69 66 0d 00 00 00 00 00 |if..#end|if......|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 01 00 00 00 01 62 | 00 00 00 62 00 00 00 5a |.......b|...b...Z|
|00002790| 00 1e 20 6a 00 0c 20 68 | 00 04 2f 28 00 22 20 6a |.. j.. h|../(." j|
|000027a0| 00 0c 20 68 00 04 2f 28 | 00 22 4e ba 4b c2 20 6a |.. h../(|."N.K. j|
|000027b0| 0a 41 6c 70 68 61 62 65 | 74 2e 68 61 02 00 00 00 |.Alphabe|t.ha....|
|000027c0| 50 61 72 74 53 49 54 21 | 00 00 00 00 00 00 00 00 |PartSIT!|........|
|000027d0| 00 00 50 61 72 74 53 49 | 54 21 00 00 00 00 00 00 |..PartSI|T!......|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 ab 4c 25 2e 00 00 | 00 00 00 00 01 bc 50 8f |...L%...|......P.|
|00002800| 60 22 2f 0c 20 6b 00 04 | 2f 28 00 1e 4e ba 4c 5e |`"/. k..|/(..N.L^|
|00002810| 2e 8b 4e ba ff 22 20 6b | 00 04 28 68 00 22 50 8f |..N.." k|..(h."P.|
|00002820| 26 6b 00 14 20 0b 66 da | 2f 0c 20 6a 00 04 2f 28 |&k.. .f.|/. j../(|
|00002830| 00 22 4e ba 4c 38 50 8f | 60 00 05 98 20 6a 00 04 |."N.L8P.|`... j..|
|00002840| 2f 28 00 1e 20 6a 00 18 | 20 68 00 04 2f 28 00 1e |/(.. j..| h../(..|
|00002850| 4e ba 4c 1a 2e aa 00 18 | 4e ba fe dc 20 6a 00 18 |N.L.....|N... j..|
|00002860| 20 68 00 04 2e a8 00 22 | 20 6a 00 1c 20 68 00 04 | h....."| j.. h..|
|00002870| 2f 28 00 1e 4e ba 4b f6 | 2e aa 00 1c 4e ba fe b8 |/(..N.K.|....N...|
|00002880| 00 00 00 04 00 07 00 02 | 00 00 00 0a 00 0a 06 47 |........|.......G|
|00002890| 65 6e 65 76 61 47 00 00 | 00 48 00 0a 47 65 6e 65 |enevaG..|.H..Gene|
|000028a0| 76 61 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |va......|........|
|000028b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 07 00 02 |........|........|
|000028c0| 00 2c 00 03 01 dd 02 7d | 00 2a 00 04 01 dc 02 7c |.,.....}|.*.....||
|000028d0| aa ef ec 67 00 00 02 98 | 00 00 02 98 00 00 00 00 |...g....|........|
|000028e0| 00 00 00 00 01 00 00 00 | 01 62 00 00 00 62 00 00 |........|.b...b..|
|000028f0| 00 5a 00 bc 86 5c 12 5e | 00 00 00 1c 00 5a 00 02 |.Z...\.^|.....Z..|
|00002900| 45 54 41 42 00 00 00 1a | 45 46 4e 54 00 00 00 26 |ETAB....|EFNT...&|
|00002910| 4d 50 53 52 00 00 00 32 | 03 ec ff ff 00 00 00 00 |MPSR...2|........|
|00002920| 00 00 00 00 03 eb ff ff | 00 00 00 08 00 00 00 00 |........|........|
|00002930| 03 ed ff ff 00 00 00 16 | 00 bc 85 8c 00 00 00 00 |........|........|
|00002940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+